package com.woniuxy.service;

import com.woniuxy.entity.Department;
import com.woniuxy.entity.SubDepartment;
import com.woniuxy.entity.dto.DepartmentDTO;
import com.woniuxy.entity.dto.SubDepartmentDTO;
import com.woniuxy.util.PageData;
import com.woniuxy.util.ResponseData;

import java.text.ParseException;

public interface DeptService {
    ResponseData<?> queryAllDept(PageData<DepartmentDTO> pageData) throws ParseException; //查询全部部门
    ResponseData<?> queryAllSubDept(Integer id);// 根据部门id查询子部门
    ResponseData<?> addDept(Department department);// 添加部门
    ResponseData<?> saveUpdateDept(Department department);// 修改部门信息
    ResponseData<?> updateStatus(Department department);// 修改部门启用状态
    ResponseData<?> addSubDept(SubDepartment subDepartment);// 添加子部门
    ResponseData<?> updateSubDeptSave(SubDepartment subDepartment);// 添加子部门
    ResponseData<?> updateSubStatus(SubDepartment subDepartment);// 修改子部门启用状态
}
